<%@ include file="/common/taglibs.jsp"%>

<head>
	<title>您的购物车中没有商品，系统将自动转向以方便您继续购买商品</title>
</head>
<div class="main">
	<br/><br/>
	<div class="tip_txt" id="ShowDiv"></div>
	<br/><br/>
</div>

<script type="text/javascript">
	var secs =5; //倒计时的秒数
	var URL ;
	function Load(url) {
		URL =url;
		for(var i=secs;i>=0;i--) {
			window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000);
		}
	}
	
	function doUpdate(num) {
		document.getElementById('ShowDiv').innerHTML = '<fmt:message key="shoppingcart.message.isEmpty1"/> <b>'+num+'</b> <fmt:message key="shoppingcart.message.isEmpty2"/>' ;
		if(num == 0) { window.location=URL;  }
	}
	
	Load("${ctxPath}/index.html");
</script> 